#include"GlobalHeader.h"
#include"StdMsgQueue.h"

int main()
{
    MsgQ *q=MsgQueueInit("./1",1);

    char msg[100] = "helloworld!";
    WriteToMsgQ(q, 1, msg, 100);

    char str[100] = {0};
    ReadFromMsgQ(q, 1, str, 100);

    printf("收到消息：%s:\n", str);

    ClearMsgQ(q);
    return 0;
}